﻿<%@ Page  Language="C#" MasterPageFile="~/Master/Site.Master" AutoEventWireup="true"
    CodeBehind="Default.aspx.cs" Inherits="DjBlog.Blog.Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<title><%= string.IsNullOrEmpty(title) ? "阿拉神丁" : title + "-阿拉神丁"%></title>
<meta name="keywords" content="<%= (string.IsNullOrEmpty(keyword)?"":keyword+",")+"alashending,阿拉神丁,前端设计,互联网,摄影,f2e" %>" />
<meta name="description" content="<%= string.IsNullOrEmpty(keyword)?"关于"+description:"阿拉神丁的博客，关注前端开发，关注用户体验，喜欢摄影。" %>" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="post">
        <%if (postlist != null)
          {
              foreach (DjModel.PostInfo post in postlist)
              { %>
        <div class="tlist">
            <dl>
                <dt><i><%= DjCommon.Utils.GetMonthSim(post.CreateDate.Month) %></i><br /><%=post.CreateDate.Day %></dt>
                <dd>
                    <b><a href="<%=DjCommon.Utils.GetArticleUrl(post.ID) %>" rel="bookmark" title="" class="ddH3"><%=post.Title %></a></b>
                </dd>
                <dd><%=DjBll.Term.GetTagHtml(post.CatString,0) %>| <a href="<%=DjCommon.Utils.GetArticleUrl(post.ID) %>#comment" title=""><%=post.CommentCount %> comments</a>
                    |&nbsp;<%=post.ReadCount %>&nbsp;reads&nbsp; |<%= DjCommon.Utils.GetMonthSim(post.CreateDate.Month) %>&nbsp;<%=post.CreateDate.Year %>
                    <div style="float: right;">
                        Tag : <%=DjBll.Term.GetTagHtml(post.TagString,1) %>
                    </div>
                </dd>
            </dl>
            <p3>
                <%=DjCommon.Utils.GetPostContentNoMore(post.Content) %>
            </p3>
            <p>
                <a class="more-link" href="<%=DjCommon.Utils.GetArticleUrl(post.ID) %>">查看全文 »</a>
            </p>
            <p class="tlistp">
                <span><a href="<%=DjCommon.Utils.GetArticleUrl(post.ID) %>#comment" title=""><%=post.CommentCount %> comments</a></span>
            </p>
        </div>
        <%}
          } %>
        
    </div>
    <div class="post-navigation">
        <%if (!string.IsNullOrEmpty(prepage))
          { %>
        <div class="pre" >
            <a href="<%=prepage %>">Pre Page</a>
        </div>
        <%} %>
        <%if (!string.IsNullOrEmpty(nextpage))
          { %>
        <div class="next">
            <a href="<%=nextpage %>">Next Page</a>
        </div>
        <%} %>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="foot" runat="server">
</asp:Content>
